import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/iconfont/iconfont.css'
import { DropdownMenu, DropdownItem, Uploader, Popup, CellGroup, Empty, Cell, List, Button, Icon, Tag, Tabbar, TabbarItem, Field, NavBar, Toast, Grid, GridItem, Image as VanImage, Swipe, SwipeItem, Lazyload, Card, Search, Area, IndexBar, IndexAnchor, Picker, Form } from 'vant'
import BaiduMap from 'vue-baidu-map'
import { VueJsonp } from 'vue-jsonp'
Vue.use(VueJsonp)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Form)
Vue.use(Uploader)
Vue.use(Popup)
Vue.use(Picker)
Vue.use(Field)
Vue.use(CellGroup)
Vue.use(Empty)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Area)
Vue.use(Search)
Vue.use(Cell)
Vue.use(List)
Vue.use(Tag)
Vue.use(Card)
Vue.use(Lazyload)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(VanImage)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Toast)
Vue.use(NavBar)
Vue.use(Field)
Vue.use(Tabbar)
Vue.use(TabbarItem)

Vue.use(Button)
Vue.use(Icon)
Vue.config.productionTip = false
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'D8NtFWsoekTAFTh2BrDoPG5O9DNwzbe7'
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
